﻿using System.Data;

namespace DevTeam
{
    public class DevReport : DevExpress.XtraReports.UI.XtraReport
    {
        private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
        private DevExpress.XtraReports.UI.DetailBand detailBand1;
        private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1;
        #region Database Helpers
        public void ExecuteNonQuery(string SP, params object[] prm)
        {
            Session.DataManager.ExecuteNonQuery(SP, prm);
        }

        public DataTable ExecuteDataTable(string SP, params object[] prm)
        {
            return Session.DataManager.ExecuteDataTable(SP, prm);
        }

        public DataSet ExecuteDataSet(string SP, params object[] prm)
        {
            return Session.DataManager.ExecuteDataSet(SP, prm);
        }

        public object ExecuteScalar(string SP, params object[] prm)
        {
            return Session.DataManager.ExecuteScalar(SP, prm);
        }
        #endregion

        public DevReport()
        {
            ShowPrintMarginsWarning = false;
        }

        private void InitializeComponent()
        {
            this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
            this.detailBand1 = new DevExpress.XtraReports.UI.DetailBand();
            this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // topMarginBand1
            // 
            this.topMarginBand1.HeightF = 100F;
            this.topMarginBand1.Name = "topMarginBand1";
            // 
            // detailBand1
            // 
            this.detailBand1.HeightF = 100F;
            this.detailBand1.Name = "detailBand1";
            // 
            // bottomMarginBand1
            // 
            this.bottomMarginBand1.HeightF = 100F;
            this.bottomMarginBand1.Name = "bottomMarginBand1";
            // 
            // DevReport
            // 
            this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.topMarginBand1,
            this.detailBand1,
            this.bottomMarginBand1});
            this.Version = "15.2";
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }

    }
}
